package ex.com.jm.food.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
/**
 * 订单评价实体层
 * @author Administrator
 *
 */
@Entity
@Table(name="jm_eval")
public class Evaluation implements Serializable {

	
	private static final long serialVersionUID = 1L;
	@Id
	@GenericGenerator(name="eval_id",strategy="uuid")
	@GeneratedValue(generator="eval_id")
	@Column(name="eval_id",nullable=false,unique=true,length=32)
	private String evalId;
	@Column(name="eval_star",nullable=false,length=2)
	private int evalStar;
	@Column(name="eval_comment",nullable=true,length=10000)
	private String evalComment;
	@Column(name="eval_date",nullable=false,length=32)
	private String evalDate;
	@ManyToOne
	@JoinColumn(name="com_id")
	private Company comId;
	@ManyToOne
	@JoinColumn(name="menu_id")
	private Menu menuId;
	@ManyToOne
	@JoinColumn(name="user_id")
	private User userId;
	public String getEvalId() {
		return evalId;
	}
	public void setEvalId(String evalId) {
		this.evalId = evalId;
	}
	public int getEvalStar() {
		return evalStar;
	}
	public void setEvalStar(int evalStar) {
		this.evalStar = evalStar;
	}
	public String getEvalComment() {
		return evalComment;
	}
	public void setEvalComment(String evalComment) {
		this.evalComment = evalComment;
	}
	public String getEvalDate() {
		return evalDate;
	}
	public void setEvalDate(String evalDate) {
		this.evalDate = evalDate;
	}
	public Menu getMenuId() {
		return menuId;
	}
	public void setMenuId(Menu menuId) {
		this.menuId = menuId;
	}
	public User getUserId() {
		return userId;
	}
	public void setUserId(User userId) {
		this.userId = userId;
	}

}
